package cn.yunhe.study.rpc.test;

import cn.yunhe.study.rpc.framework.RpcFramework;

/** 
 * RpcConsumer 
 *  
 * @author ZSL 
 */  
public class RpcConsumer {  
      
    public static void main(String[] args) throws Exception {  
        HelloService service = RpcFramework.refer(HelloService.class, "172.16.8.186", 1234);  
        for (int i = 0; i < Integer.MAX_VALUE; i ++) {  
            String hello = service.hello("World" + i);  
            System.out.println(hello);  
            Thread.sleep(1000);  
        }  
    }  
      
} 
